package com.ehome.poct.core.api.vo.order;

import com.ehome.poct.core.api.constant.enums.ScanTypeEnums;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @auther: kuiba.peng
 * @date: 2022/10/28 13:17
 * @description:
 */
@Data
public class PayChannelRespVO<T> {

    private static final Integer SUCCESS_CODE = 0;

    @ApiModelProperty("扫码类型")
    private ScanTypeEnums scanType;

    private T data;

    private Integer busiCode;

    private String msg;

    public boolean isSuccess() {
        return SUCCESS_CODE.equals(busiCode);
    }
}
